namespace ThoughtWorks.TreeSurgeon.Core.Generators.Content
{
	public class DefaultVelocityTransformerConfig : IVelocityTransformerConfig
	{
		private readonly string templateDirectory;

		public DefaultVelocityTransformerConfig(string templateDirectory)
		{
			this.templateDirectory = templateDirectory;
		}

		public string TemplateDirectory
		{
			get { return templateDirectory; }
		}

		public override bool Equals(object obj)
		{
			return (obj is DefaultVelocityTransformerConfig && ((DefaultVelocityTransformerConfig) obj).TemplateDirectory == TemplateDirectory);
		}

		public override int GetHashCode()
		{
			return TemplateDirectory.GetHashCode();
		}
	}
}